package com.bjgov.scoresys.form;

import org.apache.struts.action.ActionForm;

public class ScoreFrameForm extends ActionForm{

	private static final long serialVersionUID = 5075462279120137919L;
	
	private int id;
	private String cateName;
	private int pid;
	private String deepPath;
	private Boolean isControl;
	private Boolean hasScoreItem;
	private int percent;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCateName() {
		return cateName;
	}
	public void setCateName(String cateName) {
		this.cateName = cateName;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getDeepPath() {
		return deepPath;
	}
	public void setDeepPath(String deepPath) {
		this.deepPath = deepPath;
	}
	
	public Boolean getIsControl() {
		if(getPercent()==0)
		{
			return false;
		}
		else
		{
			return  true;
		}
	}
	public void setIsControl(Boolean isControl) {
		this.isControl=false;
	}
	public Boolean getHasScoreItem() {
		return hasScoreItem;
	}
	public void setHasScoreItem(Boolean hasScoreItem) {
		this.hasScoreItem = hasScoreItem;
	}
	public int getPercent() {
		return percent;
	}
	public void setPercent(int percent) {
		this.percent = percent;
	}
	

//	@Override
//	public ActionErrors validate(ActionMapping mapping,
//			HttpServletRequest request) {
//		ActionErrors err = new ActionErrors();
//        //验证码验证
//        if(StringUtils.isEmpty(cateName)){
//            err.add("nameError",new ActionMessage("jsp.login.name.error"));
//        }
//        return err;
//	}
}
